﻿@{
    ViewBag.Title = "公告管理 ";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using SpeadFrm.MvcPager
@model PagedList<JStore.Web.Controllers.SysManage.ViewModels.NewsModel>
<link href="../../Scripts/colorbox/colorbox.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/colorbox/jquery.colorbox-min.js" type="text/javascript"></script>
<script src="../../Scripts/AdminCommon.js" type="text/javascript"></script> 
<div class="right_box_card">
    <ul>
        <li class="right_box_card1"><a href="#">公告管理</a></li>
    </ul>
</div>
<div style="line-height: 40px;">
    <p class="avatar_btn">
        <a href="@Url.Action("SaveNews", "SysManage")" class="box" id="lnkAdd">发布公告</a>
    </p>
</div>
<table class="right_box_tab" style="margin-top: 10px;" width="100%" border="0" cellspacing="0"
    cellpadding="0">
    <tr height="30" class="tab_title">
        <td>
            Id
        </td>
        <td>
            标题
        </td>
        <td>
            创建人
        </td>
        <td>
            创建时间
        </td>
        <td>
        </td>
    </tr>
    @foreach (var item in Model)
    {
        <tr height="35" class="tab_td1" style="line-height: 26px;" onmouseover="this.className = 'tab_td2' "
            onmouseout=" this.className = 'tab_td1'">
            <td>
                @item.Id
            </td>
            <td>
                @item.Title
            </td>
            <td>
                @item.CreateUserName
            </td>
            <td>
                @item.CreateDate
            </td>
            <td>
                @Html.ActionLink("修改", "SaveNews", "SysManage", new { item.Id }, new { @class = "box" })
                <a href="javascript:void(0);" onclick="DeletePost('@Url.Action("DeleteNews", "SysManage")',{id:@item.Id});">
                    删除</a>
            </td>
        </tr>
    }
</table>
<div style="padding: 10px;">
    @Html.Pager(Model)
</div>
